/*
 * @Description: 重写URL的中间组件
 * @Author: your name
 * @Date: 2019-08-17 13:44:33
 * @LastEditTime: 2019-08-17 13:49:16
 * @LastEditors: Please set LastEditors
 */
var connect = require('connect')
const url = require('url')
const app = connect().use(rewrite).listen(3000)


const path = url.parse(req.url).pathname

function rewrite(req,res,next){
    var match = path.match(/^\/blog\/posts\/(.+)/)
    if(match){
        
    }
}